import service from './service'

export default {
    // 货币/结算方式/票款顺序
    basicConfiguration(params) {
        return service.post('/contract-client-web/contract/basicConfiguration', params);
    },
    // 仓库 
    queryWarehouseConditions(params) {
        return service.post(process.env.VUE_APP_BASE_G_API + '/wms-web/wms-extend-api/warehouse/condition', params);
    },
    // 查询服务类型
    queryServiceTypeInfo(params) {
        return service.post(process.env.VUE_APP_BASE_G_API + '/tms-web/tms-agreement-api/agreement/wms/queryServiceTypeInfo', params);
    },
    // 查询费用
    queryCostInfoByServiceType(params) {
        return service.post(process.env.VUE_APP_BASE_G_API + '/tms-web/tms-agreement-api/agreement/wms/queryCostInfoByServiceType', params);
    },
    // 产品  
    projectSelect(params) {
        return service.post('/contract-client-web/templateDefinition/projectSelect', params);
    },
    // 文件加签预览
    fileAddressTranslation(params) {
        return service.post('/contract-client-web/contract/fileAddressTranslation', params);
    },

    /**
     * wm项目明细非标
     */
    // 货品列表
    queryGoods(params) {
        return service.post(process.env.VUE_APP_BASE_G_API + '/wms-web/wms-extend-api/product/batchSearch', params);
    },
    // 品名列表
    queryList(params) {
        return service.post(process.env.VUE_APP_BASE_G_API + '/wms-web/wms-extend-api/industry/spu/config/queryList', params);
    },
    // 指定品名 固定属性名
    queryType(params) {
        return service.post(process.env.VUE_APP_BASE_G_API + '/wms-web/wms-extend-api/industry/spu/attr/queryType', params);
    },
    // 不指定品名 固定属性名
    queryPropertyList(params) {
        return service.post(process.env.VUE_APP_BASE_G_API + '/wms-web/wms-extend-api/industry/spu/main/factor/queryList', params);
    },
    // 指定品名 固定属性值
    queryListBySpuId(params) {
        return service.post(process.env.VUE_APP_BASE_G_API + '/wms-web/wms-extend-api/industry/spu/attr/queryListBySpuId', params);
    },
    // 不指定品名 固定属性值
    queryFullList(params) {
        return service.post(process.env.VUE_APP_BASE_G_API + '/wms-web/wms-extend-api/industry/spu/attr/queryFullList', params);
    },
    // 查询型号
    querySpuModel(params) {
        return service.post(process.env.VUE_APP_BASE_G_API + '/wms-web/wms-extend-api/spu/model/querySpuModel', params);
    },
    // 查询库区类型
    queryAttributeByGroupCode(params) {
        return service.post(process.env.VUE_APP_BASE_G_API + '/wms-web/wms-extend-api/attribute/queryAttributeByGroupCode', params);
    },
    // 查询运输方式
    queryTransportWayList(params) {
        return service.post(process.env.VUE_APP_BASE_G_API + '/wms-web/wms-inventory-api/open/finance/financeEvent/queryTransportWayList', params);
    },
    // 查询运输方式
    queryLocationType(params) {
        return service.post(process.env.VUE_APP_BASE_G_API + '/wms-web/wms-extend-api/attribute/open/location/type', params);
    },
    // 作业时间列表
    queryWorkTimeList(params) {
        return service.post('/contract-client-web/workTime/queryWorkTimeList', params);
    },
    
    //tms相关自定义接口
    //查询国家，省市区
    queryArea(params) {
        return service.post(process.env.VUE_APP_BASE_G_API + '/tms-web/tms-extend-api/area/tree', params);
    },
    // 查询火车站
    queryRailwayStation(params) {
        return service.post(process.env.VUE_APP_BASE_G_API + '/tms-web/tms-extend-api/railwayStation/list', params);
    },
    // 查询港口数据
    queryPortNameList(params) {
        return service.post(process.env.VUE_APP_BASE_G_API + '/tms-web/tms-extend-api/port/queryPortNameList', params);
    },
    //查询货物
    searchGoodsPage(params) {
        return service.post(process.env.VUE_APP_BASE_G_API + '/tms-web/tms-extend-api/goods/searchGoodsPage', params);
    },
    //查询车型
    listVehicleTypePage(params) {
        return service.post(process.env.VUE_APP_BASE_G_API + '/tms-web/tms-extend-api/vehicleType/listVehicleTypePage', params);
    },
    /**
     * 园区非标
     */
    // 园区主数据接口
    queryParkManageList(params) {
        return service.post(process.env.VUE_APP_BASE_G_API + '/park-admin/park-admin-api/parkManage/queryParkManageList', params);
    },
    // 租赁资源主数据接口
    queryParkList(params) {
        return service.post(process.env.VUE_APP_BASE_G_API + '/park-admin/park-admin-api/park/estate/lease/resource/queryList', params);
    },
    // 附属设施主数据接口
    queryAssetsList(params) {
        return service.post(process.env.VUE_APP_BASE_G_API + '/park-admin/park-admin-api/park/assets/queryAssetsList', params);
    },
    // 常跑线路
    queryUsualLineColumnList(params) {
        return service.post('/contract-client-web/customColumn/queryUsualLineColumnList', params);
    },
    // 园区 其它费用
    queryParkCostColumnList(params) {
        return service.post('/contract-client-web/customColumn/queryParkCostColumnList', params);
    },
    // 费用项列表下拉框
    listFeeItem(params) {
        return service.post(process.env.VUE_APP_BASE_G_API + '/park-admin/park-admin-api/lease/feeItem/listFeeItem', params);
    },
}